export default {
    namespaced: true,
    state:()=>( {
        viewSize: {},
        mainHeight: 0, //Main窗口的高度
    }),
    getters: {
        getViewSize(state) {
            return state.viewSize;
        },
        getMainHeight(state) {
            return state.mainHeight;
        }
    },
    mutations: {
        setViewSize(state, viewSize) {
            state.viewSize = viewSize;
        },
        setMainHeight(state, mainHeight) {
            state.mainHeight = mainHeight;
        }
    },
    actions: {
        setViewSize({ commit }, viewSize) {
            commit('setViewSize', viewSize);
        },
        setMainHeight({ commit }, mainHeight) {
            commit('setMainHeight', mainHeight);
        }
    },
}